package com.gxy.learn.design.model.behaviour.mediator;

import lombok.extern.slf4j.Slf4j;

/**
 * @description: 房东 具体同事角色
 * @author: gaoxueyong
 * @Date: 2022/11/8 21:02
 */
@Slf4j
public class HouseOwner extends Person {
    public HouseOwner(String name, Mediator mediator) {
        super(name, mediator);
    }
    /**
     *  交谈
     * @Author gaoxueyong
     * @Date 9:09 下午 2022/11/8
     * @Param [message, mediator]
     * @return void
     **/
    public void constact(String message){
        mediator.constact(message,this);
    }

    /**
     * 获取信息
     * @Author gaoxueyong
     * @Date 9:09 下午 2022/11/8
     * @Param [message]
     * @return void
     **/
    public void getMessage(String message){
        log.info("房东{}获取到的消息是:{}",name,message);
    }
}
